package com.tedu.day02.test;


public class Object超类 extends Object{
    //验证所有类都继承Object
    Object[] obj=new Object[4];
    //Object对象直接创建
    obj[0]=new Object();
    //String对象
    obj[1]="字符串";
    //int类型
    obj[2]=123;
    //当前对象
    obj[3]=new Object超类();
    //遍历：增强for循环
    for(Object b:obj){
     //   System.out.println(b.toString());
        System.out.println(b.getClass());
    }
}
